takePhoto changes to resize taken photo