Add #define statements for header files.
Use qreal for image dimensions.