remove not needed dependencies from user to image