Prepare for graphics