Made preview images responsive, fix two server bugs