edit image resource