Added image optimization