Added default alpha value, added optional smooth parameter to loadImage