check for empty thumbnail object store
insert image type check.
implemented the beautiful thumbnail service