Compressed images saving 15% filesize

Pull request #572 on mleibman master from April 20, 2013.