activate image libraries
add image libraries to Cmake and small cleans
fix error computing pixel coordinate