fixing images bug