Annotation_custom not working for plotly in R

I tried plotting a background image in R using the ggplot package (using the annotate_custom function), which I was able to do. However when I tried implementing the same in plotly, I am unable to do so. Any pointers?