try to use canvas
resize the photo