fix for rgba with images