various fixes in the entity manager and first step for upload images in the blobstore and show it