What are the important steps of image optimization?