Improved save, resize and crop actions

Check animated gif before save and actions to reduce final size file.