Modify image-size to use pased in filetype