photo size reduction functional. needs front end work