implement limitation on selecting images using gallery