made images dynamic by implementing the segue