resize image only if larger than 6MP
resize image only if larger than 6MP