resize bitmap on simulator