update to resize image