faster image file reading (not needed to use FileReader and base64)