How I can make one image for loop, which is copresed and encrypted?