Removed FileItem.getFileExtension() and its imageSize property. Renamed 'Weight' to 'imageDimensions'. Also separated the size and dimensions RowLayouts into components so they can only be called when necessary and added checks to WindowFiles.qml to make sure that the file is supported before trying to assign it to the viewer (these both fix errors).