Added logic for work with multiple select and checkboxes
Added image style dependency checking and fixed a code style issue.
Integration to work in Drupal 8.x