fix images with no dimensions specified