Add/alter image attribute before render

Add/alter image attribute before render