Fixed minor bug in image-support