Fixes related to category selection and image size

Fixes related to category selection and image size