Added images preview for posts; bugfixes