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).