Added getAssignedtoImage Function