Make test dir the same as work dir
Generate image based on options