fix updatea attachment only for photos
Merge branch 'master' of https://github.com/rtCamp/rtMedia