fix for error moving image files