Fix percentage handing in image size