Image read functionality added