In order to link against ROS libraries you need to add the dependency to your package.xml
file:
<build_depend>image_transport</build_depend>
<run_depend>image_transport</run_depend>
and to your CMakeLists.txt
:
find_package(catkin REQUIRED COMPONENTS
...
image_transport
...
)