remove prints and fix url_for of get_thumbnail