Removed the code related to image string encoding