cleanup
added photo validation and resize