Default width/height from db, more retina support

Now loads width and height defaults from thumbnail settings in media. Added arbitrary retina sizes support (such as 1.5 and 2 and 4).
Indentation fixes
Identation fixes

Thank you Github editor for being so weird.
Code consistency for secondary function
Merge pull request #3 from Derkje-J/master

Default sizes and retina support