Added defines for buffered images