Combined base64 image and layer decoding under new class