Using local files to reduce image size