Fixed a small bug with images