Handle lack of imageop for scaling (badly)
Create PseudoFile wrapper class for better handling of path and open file object