Update image.php

filename is decoded in the beginning, saving files in cache