fixed get_image_height/width to actually work