Photos on BB boards

How did you guys made it so any photos posted are auto resized and it would blow it up once the mouse is moved over it? Does it involve actually modifying the code?