Added safesql to image class
Added safesql to media class
Fixed sql error
Added safesql to media photo class
Added safesql to media photo image and media video
Added safesql to page class