Rails only reads JPG and JPEG files. Set timeout on end pages