Made item validation for resize_extension and thumb_extension a bit prettier.