Fixed a bug with images