Fixed Notes & Images bug

To fis bug: notes and images panel didn't show at all if no notes or
images were present.