I’ve done the same thing before, even though I have access too, am out of the closet, and also am allowed to burn candles (I was in pain on my bed and whipped out my phone, then used an app called Free Candle. Iphone version, Android version .)
I find that images and gifs work fine as substitutes, especially when you have to work within your means. However, I think it shifts some of the work onto you, the caster of the spell, because you’re forced to focus a bit harder on the way that the spell is going to work, rather than just letting the real candle burn and release it’s own energy/carry your intent.
But yes, It’s not wrong at all, and good job on finding a way to do what you need to/want to do, while also being in the closet.