adding $state var to method
alternate way to get image src, now the url returned is filtered by other plugins