optimized imgs stripped unnecessary code