Update MY_Image_lib.php

Move dir create as high as it can be