add optional size param to compound image creation