I had the same error attempting to add an image from the front end editor, I too am using Joomlart T3 Framework. I have found that a workaround is to modify one of the K2 parameters that can be edited from the backend K2 Parameters dialog....
More