Turning thumbnail creation into classes