Moved min_opaque_val to image
Convert image lazily
Modify image alpha on the fly
Cleaner conversion to float-image
Check when memory allocation fails
Don't convert entire image if exceeding memory limit
Don't build contrast maps if exceeding memory limit