More solid implementation of back link on detail page
Bug fixes and cleanup for get_url_for_size to handle both w&h