Prevent selection of invalid images (#462)
Prevent selection of invalid images (#462)

The user might attempt to select an invalid image by dropping on the
first step, which would cause Etcher to blindly select it, possibly
causing errors later on the process.

This PR makes use of the list of supported extensions provided by
`SupportedFormatsModel` and prevents the selection if necessary, logging
an event that might help us determine which unsupported image types
users try to burn most often.

Signed-off-by: Juan Cruz Viotti <8493db2a4f45d66df375afe12f7eba59fe1c8d78@gmail.com>
resin-io/etcher,resin-io/resin-etcher,resin-io/etcher,resin-io/herostratus,resin-io/resin-etcher,resin-io/etcher,resin-io/herostratus,resin-io/etcher,cedricve/etcher,cedricve/etcher,cedricve/etcher,resin-io/etcher