Added `accept` attribute on image widget, added alert message when loaded an invalid image.