Image attachments download instead of being viewed in the browser

Created by: bobrovnikov

As far as I remember, images attached to the posts were available to see inside browser window, when the link opened with target="_blank". However, after recent updates images are downloaded instead of being viewed directly. And this type of behaviour is rather inconvenient. Is there any config I can change to fix this?