Added optipng function for image optimization