resolve #91: replace new Image to FileAPI.newImage