fix: image scripts are correctly handled