Added a workaround for ajax image uploading stupidity.