Fixed photo downloading problem