Fixed bug in image width