Fixed potentially treating translucent pixelformats as opaque

Adds a simple check, if the pixelformat has an alpha-channel, sets it to translucent. If not, defaults to opaque.
If this was intended, please disregard.