will be transferred later to new Image class