Fix bugs and compile images using optipng