Added support to new fs method
Moved to read image file using php string image reader