Fixed a bug on setImage