Add medium/large_media_query, and image handling

For dreamwidth/dw-free#841 and dreamwidth/dw-free#838
Merge pull request #73 from afuna/medium_large_media_query

Add medium/large_media_query, and image handling