put env var to prod in rotate image function