added rules around images