Revert "use ajax to grab the img data since we need to auth"

This reverts commit a258cbe2cac0060e6fd43a647bf98a4392d87b32.