change gem file
refactor + fix a few bugs when downloading images