bugfix case chaining for selecting image type by adding breaks properly