fix allowed image types setting