only modify image sizes that are strings, fixes #3