adding conditionals for images