fixed issues in the new image loader
fixed issues in the new image loader