Set restrictions for images