fixed directImage option loop