removed comments and image processing calls