fixed double ratio calculate
added resize lightbox image to insert tag 'image'