[FIX] fix the mode readonly on image widget

Hi, the readonly mode is broken on the image here is the fix.
The check if the readonly mode was active was simply forgotten.

Thanks