add ability to select phoro resource
add ability to select photo
fix problems with image loading