fix #1617 Fixes download method in galery/views

If the cache path doesn't exist, we create it and
not the zip file. Removes last zip file when the
cache directory is too big according to value
specified in the settings.py file.