Image optimization and tweaks