Photo processing and optimizing