IDE: opening image should show the image not the bytes

Currently, the raw data is shown in the text editor, which is kinda useless.