Allowing the possibility to specify env properties for PDF and Image classes