fitting images in posts without violating max width/height

:moon: :sleeping: