Added support of different image types into camera class. Now it supports: png, jpg.