set maxinum for imported photos