create base64 image from given sprite sheet class