fixed image importing for wp_cron