#177 add converting to jpeg and resize if needed + show photo on user/view