added pre processing of photo size back in.