Add method to check if image format has alpha channel Change-Id: I138f766c17654917b0357b1ec2250a8489738bef