Fixes #46 - Wrong file modes for read methods; refactored C fd open code.
Fixes #46 - Wrong file modes for read methods; refactored C fd open code.

yoya/imagick,Sk464036801/imagick,yoya/imagick,Sk464036801/imagick