add file range support to image loader methods