Fixed a problem with the optimize_images? method

Copy and paste FTW. Not.