added preliminary image funcitonality