changed path calculation

new path is hash[0:2]/hash[0:8]/hash.ext
method to calculate absolute path for uploaded images
serving images, resize when necessary
give only readpermission for others on images
Merge branch 'img-resource'

serving and resizing images