Added alpha option support to loadImage()