trying to get canvas resize working from photos taken from library