load avatar from file, url, camera in rails