adding bg and limit image size