imageFactory issure bug solving