Fix creation of new image tiles and setting cache headers.