restrict image with custom css