Media library fixes, image margin, etc.