scale jpg for ios simulator