Log error message when imageSize parameter isn't a string

Before, passing "imageSize: 400" would result in an error (as there's
no .split method) but the friendly message wouldn't be printed.