add a simple protection to image downloading