add check if pixel contains alpha value