Depth and Transparency

I’ve got a problem where I can’t have images with Depth and Transparency.
I’m binding Images onto a 3d mesh and I enable depth test my images are drawn with a background
but if I disable it the depth is all messed up.
I tried all of the different types of glDepthFunc but none made the pngs transparent and without background.
My solution for the moment is to bind the images using a shader that discards pixels with 0 luminance but it isn’t perfects and I was hoping for a better solution.