modify image manager js