Verify that temp file is created by checking ret code in create_img