Sad Face after opening and closing image

I’m creating a new thread for this as it doesnt appear to be related to the ‘freeze’ problem.

When I open a picture from my sdcard, it shows fine in fullscreen. But then when I press the back button to close it, OSMC hangs up, and soon does a sad face restart.

http://paste.osmc.io/benajiciga.vhdl

EDIT: Dont neccessarily have to close the picture. Now it came up with the sad face while the picture was just open.