replace images, handle keyboard events in profile