try to reintegrate image reading