added autosize generation of image tag size attributes