Returns attachment Id from it's url src
From http://wordpress.org/support/topic/need-to-get-attachment-id-by-image-url