Added isImage test before queuing styles

When uploading file types other than images, an error occurred if a
styles array was provided.

By doing a isImage check before any styles are being processed, we can
set the styles array to only contain [“original”], witch simply stores
the file without processing.