photo upload support
updated tests